<head>
	<link rel="stylesheet" href="/apps/ckeditor/contents.css">
</head>
<h2>Classic editor</h2>
<div id="editor1">
	<h1>Lenna</h1>

	<p><strong>Lenna</strong> or <strong>Lena</strong> <img alt="Lena Söderberg" src="/tests/_assets/lena.jpg" width="30" /> is the name given to a <a href="http://en.wikipedia.org/wiki/Standard_test_image" title="Standard test image">standard test image</a> widely<strong>[[Dwight Hooker]]</strong> used in the field of image processing since 1973. It is a picture of [[Lena Söderberg]], shot by photographer , cropped from the <a href="http://en.wikipedia.org/wiki/Centerfold" title="Centerfold">centerfold</a> of the November 1972 issue of <em><a href="http://en.wikipedia.org/wiki/Playboy" title="Playboy">Playboy</a></em> magazine. Given the nature of the image and its source, several academics have criticized its continued use in scientific publications and <a href="http://en.wikipedia.org/wiki/Higher_education" title="Higher education">higher education</a> as both sexist and unprofessional.</p>

	<p>The spelling "Lenna" comes from the <a href="http://en.wikipedia.org/wiki/Anglicisation" title="Anglicisation">anglicisation</a> used in the original <em>Playboy</em> article.</p>

	<h1>Mathematics</h1>

	<p><strong>Mathematics</strong> (from Greek μάθημα <em>máthēma</em>, “knowledge, study, learning”), often shortened to <strong>maths</strong> or <strong>math</strong>.</p>

	<p><span class="math-tex">\( \left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right) \)</span></p>

	<h1>Apollo 11</h1>

	<h2>Broadcasting and <em>quotes</em> <a id="quotes" name="quotes"></a></h2>

	<p>Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:</p>

	<blockquote>
	<p>One small step for [a] man, one giant leap for mankind.</p>
	</blockquote>

	<p>Launched by a <strong>Saturn V</strong> rocket from <a href="http://en.wikipedia.org/wiki/Kennedy_Space_Center" title="Kennedy Space Center">Kennedy Space Center</a> in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of <a href="http://en.wikipedia.org/wiki/NASA" title="NASA">NASA</a>'s Apollo program. The Apollo spacecraft had three parts:</p>

	<ol>
		<li><strong>Command Module</strong> with a cabin for the three astronauts which was the only part which landed back on Earth</li>
		<li><strong>Service Module</strong> which supported the Command Module with propulsion, electrical power, oxygen and water</li>
		<li><strong>Lunar Module</strong> for landing on the Moon.</li>
	</ol>

	<p>After being sent to the Moon by the Saturn V's upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the <a href="http://en.wikipedia.org/wiki/Mare_Tranquillitatis" title="Mare Tranquillitatis">Sea of Tranquility</a>. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the <a href="http://en.wikipedia.org/wiki/Pacific_Ocean" title="Pacific Ocean">Pacific Ocean</a> on July 24.</p>
</div>

<h2>Inline editor</h2>
<div id="editor2" contenteditable="true">
	<h1>Lenna</h1>

	<p><strong>Lenna</strong> or <strong>Lena</strong> <img alt="Lena Söderberg" src="%BASE_PATH%_assets/lena.jpg" width="30" /> is the name given to a <a href="http://en.wikipedia.org/wiki/Standard_test_image" title="Standard test image">standard test image</a> widely used in the field of image processing since 1973. It is a picture of [[Lena Söderberg]], shot by photographer [[Dwight Hooker]], cropped from the <a href="http://en.wikipedia.org/wiki/Centerfold" title="Centerfold">centerfold</a> of the November 1972 issue of <em><a href="http://en.wikipedia.org/wiki/Playboy" title="Playboy">Playboy</a></em> magazine. Given the nature of the image and its source, several academics have criticized its continued use in scientific publications and <a href="http://en.wikipedia.org/wiki/Higher_education" title="Higher education">higher education</a> as both sexist and unprofessional.</p>

	<p>The spelling "Lenna" comes from the <a href="http://en.wikipedia.org/wiki/Anglicisation" title="Anglicisation">anglicisation</a> used in the original <em>Playboy</em> article.</p>

	<h1>Mathematics</h1>

	<p><b>Mathematics</b> (from Greek μάθημα <em>máthēma</em>, “knowledge, study, learning”), often shortened to <strong>maths</strong> or <strong>math</strong>.</p>

	<p><span class="math-tex">\( \left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right) \)</span></p>

	<h1>Apollo 11</h1>
	<h2>Broadcasting and <em>quotes</em> <a id="quotes" name="quotes"></a></h2>

	<p>Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:</p>

	<blockquote>
	<p>One small step for [a] man, one giant leap for mankind.</p>
	</blockquote>

	<p>Launched by a <strong>Saturn V</strong> rocket from <a href="http://en.wikipedia.org/wiki/Kennedy_Space_Center" title="Kennedy Space Center">Kennedy Space Center</a> in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of <a href="http://en.wikipedia.org/wiki/NASA" title="NASA">NASA</a>&#39;s Apollo program. The Apollo spacecraft had three parts:</p>

	<ol>
		<li><strong>Command Module</strong> with a cabin for the three astronauts which was the only part which landed back on Earth</li>
		<li><strong>Service Module</strong> which supported the Command Module with propulsion, electrical power, oxygen and water</li>
		<li><strong>Lunar Module</strong> for landing on the Moon.</li>
	</ol>

	<p>After being sent to the Moon by the Saturn V&#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the <a href="http://en.wikipedia.org/wiki/Mare_Tranquillitatis" title="Mare Tranquillitatis">Sea of Tranquility</a>. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the <a href="http://en.wikipedia.org/wiki/Pacific_Ocean" title="Pacific Ocean">Pacific Ocean</a> on July 24.</p>
</div>
<script>
	if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 ) {
		CKEDITOR.tools.enableHtml5Elements( document );
	}
	CKEDITOR.addCss( '.testwidget {	border: 1px dashed #AAAAFF;	} .col1, .col2 { border: 1px dashed #AA9090; margin: 5px; }' );
	CKEDITOR.plugins.add( 'doublecolumn', {
		requires: 'widget',
		button: 'doublecolumn',
		init: function( editor ) {
			editor.widgets.add( 'doublecolumn', {
				button: 'doublecolumn',
				template: '<div class="testwidget"><div class="col1"></div><div class="col2"></div></div>',
				editables: {
					col1: { selector: '.col1' },
					col2: { selector: '.col2' }
				},
				upcast: function( element ) {
					return element.hasClass( 'testwidget' );
				}
			} );
		}
	} );


	CKEDITOR.replace( 'editor1', {
		height: 400,
		mathJaxLib: bender.config.mathJaxLibPath,
		extraPlugins: 'doublecolumn',
		allowedContent: true
	} );

	CKEDITOR.inline( 'editor2', {
		mathJaxLib: bender.config.mathJaxLibPath,
		extraPlugins: 'doublecolumn',
		allowedContent: true
	} );
</script>
